Welcome![Sign In][Sign Up]
Location:
Search - socket thread

Search list

[WinSock-NDIS一个用socket来实现HTTP下载的程序源码

Description: 本文附带源代码还包括了一个使用CHttpSocket实现下载功能的例子工程.注意,所有的调用都是阻塞的,所以最好为一个下载任务创建一个线程,否则会导致界面无法响应用户输入. 程序运行界面如上图,显示了请求头,回应头以及下载进度.-fringe source code is also included use of a functional CHttpSocket download the example works. Attention, all calls are blocked, it's best to download a mandate to create a thread, otherwise they will be unable to respond led interface user input. As running interface map shows that the first request in response to the first progress of the download.
Platform: | Size: 90252 | Author: 屠理峰 | Hits:

[TCP/IP stackSOCKET-TCP

Description: SOCKET多线程,使用TCP连接,当有一个连接请求时候,建立一个线程。共有两个文件,一个Server,还有一个是Client-SOCKET multithreading, the use of TCP connections, when a link request, the establishment of a thread. A total of two documents, one Server, there is a Client
Platform: | Size: 24497 | Author: 的三分 | Hits:

[Internet-Networkcommoncpp2-1.5.3.tar

Description: common c++提供socket,thread等系统编程可移植的实现。 是ccrtp必要的资源库-common c provide socket, thread programming systems such as portable realized. Ccrtp is necessary resources for
Platform: | Size: 840357 | Author: skynova | Hits:

[WinSock-NDISSocketProgrammingThreadPool

Description: socket & thread pool实例
Platform: | Size: 12705 | Author: wing | Hits:

[Windows Develop2003061723305924139多线程Socket

Description: 2003061723305924139多线程Socket,多线程,通信开发-multi-thread Socket, writing by communications
Platform: | Size: 404876 | Author: 武明 | Hits:

[Internet-NetworkNetLibrary

Description: 网络socket,IO,线程池,同步,日志等等, 利用面向对象以及范性特性,为在VC下开发网络应用程序打下坚实的底层基础。-network socket, IO, thread pool, synchronization, log, etc., and the use of object-oriented Fan sexual characteristics, for the VC and development of network applications and lay a solid basis for the bottom.
Platform: | Size: 141312 | Author: 詹皇源 | Hits:

[Internet-Networkthesocket

Description: 关于linux下基于QT界面socket编程的简单实例 -based on the QT socket programming interface simple example
Platform: | Size: 3072 | Author: 郭建川 | Hits:

[P2P基于TCP-IP多线程文件传输

Description: 多线程socket文件传输,很好的一个例子,极力推荐-multi-thread socket programming for file translating. this is a very good example.
Platform: | Size: 136192 | Author: 啊q | Hits:

[Internet-Network端口扫描检测程序

Description: * 本程序是一个简单的端口扫描程序,使用TCP SOCKET * 依次试连接目标主机的端口,以此判断端口开放与否。 * 程序设计上使用了线程池,共100个线程。-* The procedure is a simple port scanning procedures, the use of TCP socket* followed test objectives mainframe connectivity ports in order to judge whether to open ports.* Procedures for the use of the design thread pool, a total of 100 threads.
Platform: | Size: 1024 | Author: 吕杰 | Hits:

[Windows Developsf_200562516252

Description: 一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = new TSession s->socket = socket //这里可以对连接的session进行自己的操作,例如给id找一个唯一的值 SetIoCompletionPort(socket, s) // 使连接socket与一个自定义结构体关联 } void myIocp::OnRead(void * p, char * buf, int len) { TSession *s = (TSession *)p send(s->socket, buf, len, 0) // 这里只是简单的把收到的消息返回给客户端 ... } void myIocp::OnClose(void * p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) // 开始监听网络端口,等待客户端连接 ... }-A class for thread pool,basic usage below: struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void* p, char* buf, int len) void OnAccept(SOCKET socket) void OnClose(void* p) } void myIocp::OnAccept(SOCKET socket) { TSession*s = new TSession s->socket = socket //here you can do something about connection session,such as find a unique id. SetIoCompletionPort(socket, s) // make connection socket associate with a custom structure } void myIocp::OnRead(void* p, char* buf, int len) { TSession*s = (TSession*)p send(s->socket, buf, len, 0) // return received message to client void myIocp::OnClose(void* p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) //start listenning net port,wait for client connect.
Platform: | Size: 2048 | Author: boxu | Hits:

[Internet-NetworkServerSocket

Description: multi thread server socket demo
Platform: | Size: 218112 | Author: ccccccckkk | Hits:

[Software Engineeringvbfrance_SOCKET-CLASS-SOCKET-AVEC-EVENEMENTS-MULT

Description: vb visual connexion multi thread
Platform: | Size: 76800 | Author: dams | Hits:

[Internet-Networkvc_thread_socket_programming_code_programming

Description: vc编程实现线程套接字编程代码vc thread socket programming code programming -vc thread socket programming code programming
Platform: | Size: 39936 | Author: 7 | Hits:

[Internet-Networksocket

Description: 一个简单的socket服务器,两个独立的线程分别处理输入流和输出流,然后一个简单的线程池处理从输入流中解析出来的iso8583数据包-A simple socket server, two separate threads are processing the input and output streams, then a simple thread pool to parse from the input stream of data packets out of the iso8583
Platform: | Size: 4096 | Author: houxiaomeng | Hits:

[Internet-NetworkSocket

Description: VC++ 线程非阻塞SOCKET通信 服务器与客户端发消息只建立一个套接字-SOCKET VC++ thread non-blocking message communications server and client to establish a socket only
Platform: | Size: 7337984 | Author: cuihang | Hits:

[TCP/IP stackCMultiSvr-(SOCKET-API-Multi-Thread)

Description: socket API 非阻塞消息方式下写的TCP客户端示例(一客户端连接多服务器)-socket API no blocking tcp client
Platform: | Size: 3660800 | Author: 赵强 | Hits:

[Documentssocket

Description: 写入用“插座”线程通信以建立要求的服务器和客户端具有发送和接收信息的功能的Java应用程序,由服务器发送到客户端的信息是“NII”没有,客户端接收该信息后,变更它为“东软信息科学”,然后发送到服务器。-Written to use socket thread communication to establish a Java application that requires the server and client have the function of sending and receiving information, the information sent by the server to the client is NII No, Client after receiving the information, change it to Neusoft information Science , and then sent to the server.
Platform: | Size: 1024 | Author: 李佳 | Hits:

[Internet-Networksocket-server-socket-serve

Description: 这是一个关于各种IO模型的socket server实现与测试。 这里采用多种模型实现了一个TCP ECHO服务器,将client发送的内容echo回去。 client每秒会发送一次请求,server保持并发连接并进行相应。 现已实现的模型: base: 最原始的echo服务器 thread: 多线程模型 select: select模型 poll: poll模型 epoll: epoll模型 参数 修改src/clients.sh 可以生成指定数量的client 修改src/base.cpp 中的MAX_CLIENT_NUM参数调整server最大服务数 修改src/base.cpp 中的CLIENT_INTERVAL参数调整client发包间隔 修改Makefile 中的DEBUG参数确定是否输出调试信息 使用方法(This is a socket server implementation and testing of various IO models. Here, a variety of models are used to implement a TCP ECHO server that returns the contents sent by echo back to client. Client sends a request per second, and server maintains concurrent connections and performs them accordingly. The model has been implemented: Base: the most primitive echo server Thread: multithreaded model Select: select model Poll: poll model Epoll: epoll model parameter Modify src/clients.sh to generate a specified number of client Modify the MAX_CLIENT_NUM parameter in src/base.cpp to adjust the maximum number of server services Modify the CLIENT_INTERVAL parameter in src/base.cpp to adjust the client contract interval Modify the DEBUG parameter in the Makefile to determine whether output debugging information is out Usage method)
Platform: | Size: 11264 | Author: JIE2012 | Hits:

[CSharpmulti-thread-simple-crawler-socket

Description: 简单的爬虫功能,socket线程。满足基本的功能,想学习爬虫的同学,可以下载参考。(Simple crawler function, socket thread)
Platform: | Size: 454656 | Author: 甘红梅 | Hits:

[Linux-Unix单线程socket实现

Description: C-S构架的linux 网络socket 单线程编程(Socket single thread programming of Linux Network Based on C-S framework)
Platform: | Size: 2048 | Author: 小k当家 | Hits:
« 1 23 4 5 6 7 8 9 10 ... 20 »

CodeBus www.codebus.net